package com.vercon.otamirror.mode;

import java.io.Serializable;

/**
 * Created by csh on 2021/4/15
 */
public class FirmwareMode implements Serializable {

    /**
     * version : v2.2.0
     * apk_url : http://fileservice.i-mrmax.com/www/static/theme/121/3/1618456825987.png
     * desc : 123123
     * releaseType : 1
     * model : K10
     */

    public String newVersion;//固件新版本
    public String oldVersion;//固件新版本
    public String apk_url;//下载地址
    public String desc;//更新说明
    public boolean releaseType;//1强制更新，-1非强制
    public String time;//推送时间
    public boolean ispush;//是否是推送的ota更新

    public FirmwareMode(String newVersion, String oldVersion, String apk_url, String desc, boolean releaseType, String time, boolean ispush) {
        this.newVersion = newVersion;
        this.oldVersion = oldVersion;
        this.apk_url = apk_url;
        this.desc = desc;
        this.releaseType = releaseType;
        this.time = time;
        this.ispush = ispush;
    }

    @Override
    public String toString() {
        return "FirmwareMode{" +
                "newVersion='" + newVersion + '\'' +
                ", oldVersion='" + oldVersion + '\'' +
                ", apk_url='" + apk_url + '\'' +
                ", desc='" + desc + '\'' +
                ", releaseType=" + releaseType +
                ", time='" + time + '\'' +
                ", ispush=" + ispush +
                '}';
    }
}